package com.shopcart.repository;



import java.util.Date;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.shopcart.domain.Order;


@RestResource(exported = false)
public interface OrderRepository extends CrudRepository<Order, String> {
	@Query("select count(1) from Order  where createTime >= ?1 and state = 3")
	int countByCreateTimeAndState3(Date time);
	
}
